.class public Ljavax/microedition/io/file/FileSystemRegistry;
.super Ljava/lang/Object;
.source "FileSystemRegistry.java"


# static fields
.field static class$javax$microedition$io$file$FileSystemRegistry:Ljava/lang/Class;

.field static class$org$microemu$cldc$file$FileSystemRegistryDelegate:Ljava/lang/Class;

.field private static impl:Lorg/microemu/cldc/file/FileSystemRegistryDelegate;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    .line 39
    sget-object v0, Ljavax/microedition/io/file/FileSystemRegistry;->class$javax$microedition$io$file$FileSystemRegistry:Ljava/lang/Class;

    if-nez v0, :cond_0

    const-string v0, "javax.microedition.io.file.FileSystemRegistry"

    invoke-static {v0}, Ljavax/microedition/io/file/FileSystemRegistry;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    sput-object v0, Ljavax/microedition/io/file/FileSystemRegistry;->class$javax$microedition$io$file$FileSystemRegistry:Ljava/lang/Class;

    :goto_0
    sget-object v1, Ljavax/microedition/io/file/FileSystemRegistry;->class$org$microemu$cldc$file$FileSystemRegistryDelegate:Ljava/lang/Class;

    if-nez v1, :cond_1

    const-string v1, "org.microemu.cldc.file.FileSystemRegistryDelegate"

    invoke-static {v1}, Ljavax/microedition/io/file/FileSystemRegistry;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v1

    sput-object v1, Ljavax/microedition/io/file/FileSystemRegistry;->class$org$microemu$cldc$file$FileSystemRegistryDelegate:Ljava/lang/Class;

    :goto_1
    invoke-static {v0, v1}, Lorg/microemu/microedition/ImplFactory;->getImplementation(Ljava/lang/Class;Ljava/lang/Class;)Lorg/microemu/microedition/Implementation;

    move-result-object v0

    check-cast v0, Lorg/microemu/cldc/file/FileSystemRegistryDelegate;

    sput-object v0, Ljavax/microedition/io/file/FileSystemRegistry;->impl:Lorg/microemu/cldc/file/FileSystemRegistryDelegate;

    .line 40
    return-void

    .line 39
    :cond_0
    sget-object v0, Ljavax/microedition/io/file/FileSystemRegistry;->class$javax$microedition$io$file$FileSystemRegistry:Ljava/lang/Class;

    goto :goto_0

    :cond_1
    sget-object v1, Ljavax/microedition/io/file/FileSystemRegistry;->class$org$microemu$cldc$file$FileSystemRegistryDelegate:Ljava/lang/Class;

    goto :goto_1
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 42
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 43
    return-void
.end method

.method public static addFileSystemListener(Ljavax/microedition/io/file/FileSystemListener;)Z
    .locals 1
    .parameter "listener"

    .prologue
    .line 46
    sget-object v0, Ljavax/microedition/io/file/FileSystemRegistry;->impl:Lorg/microemu/cldc/file/FileSystemRegistryDelegate;

    invoke-interface {v0, p0}, Lorg/microemu/cldc/file/FileSystemRegistryDelegate;->addFileSystemListener(Ljavax/microedition/io/file/FileSystemListener;)Z

    move-result v0

    return v0
.end method

.method static class$(Ljava/lang/String;)Ljava/lang/Class;
    .locals 2
    .parameter "x0"

    .prologue
    .line 39
    :try_start_0
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    return-object v1

    :catch_0
    move-exception v0

    .local v0, x1:Ljava/lang/ClassNotFoundException;
    new-instance v1, Ljava/lang/NoClassDefFoundError;

    invoke-direct {v1}, Ljava/lang/NoClassDefFoundError;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/NoClassDefFoundError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object v1

    throw v1
.end method

.method public static listRoots()Ljava/util/Enumeration;
    .locals 1

    .prologue
    .line 54
    sget-object v0, Ljavax/microedition/io/file/FileSystemRegistry;->impl:Lorg/microemu/cldc/file/FileSystemRegistryDelegate;

    invoke-interface {v0}, Lorg/microemu/cldc/file/FileSystemRegistryDelegate;->listRoots()Ljava/util/Enumeration;

    move-result-object v0

    return-object v0
.end method

.method public static removeFileSystemListener(Ljavax/microedition/io/file/FileSystemListener;)Z
    .locals 1
    .parameter "listener"

    .prologue
    .line 50
    sget-object v0, Ljavax/microedition/io/file/FileSystemRegistry;->impl:Lorg/microemu/cldc/file/FileSystemRegistryDelegate;

    invoke-interface {v0, p0}, Lorg/microemu/cldc/file/FileSystemRegistryDelegate;->removeFileSystemListener(Ljavax/microedition/io/file/FileSystemListener;)Z

    move-result v0

    return v0
.end method
